
<template>
  <div class="load">
    <img class='load-img' src="@/assets/loading.gif" alt="">
    <span>{{text}}</span>
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default: '拼命加载中...'
    }
  }
}
</script>

<style scoped>
.load {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-theme);
}
.load-img {
  width: 24px;
  height: 24px;
  margin-right: 2px;
}
</style>